//
//  mimaxiugaiViewController.m
//  个人信息
//
//  Created by IOSchengxuyuan on 15/12/1.
//  Copyright © 2015年 com.ppfur. All rights reserved.
//

#import "mimaxiugaiViewController.h"

@interface mimaxiugaiViewController (){
    float aa,bb;
    float width,height;
}

@end

@implementation mimaxiugaiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    width=[UIScreen mainScreen].bounds.size.width;
    height=[UIScreen mainScreen].bounds.size.height;
    aa=width/320;
    bb=height/568;
    _f1.delegate=self;
    _f2.delegate=self;
    _f3.delegate=self;
    _l1.frame=CGRectMake(8*aa, 30*bb, 89*aa, 21*bb);
     _l2.frame=CGRectMake(32*aa, 268*bb, 204*aa, 21*bb);
     _f1.frame=CGRectMake(20*aa, 79*bb, 280*aa, 50*bb);
     _f2.frame=CGRectMake(20*aa, 140*bb, 280*aa, 50*bb);
    _f3.frame=CGRectMake(20*aa, 203*bb, 280*aa, 50*bb);
     _bbb.frame=CGRectMake(32*aa, 312*bb, 250*aa, 43*bb);
    _bbb.layer.cornerRadius=5.0f;
    _f1.placeholder=@" 原密码";
    _f2.placeholder=@" 新密码";
    _f3.placeholder=@" 确认密码";
    _f1.layer.cornerRadius=5.0f;
     _f2.layer.cornerRadius=5.0f;
     _f3.layer.cornerRadius=5.0f;
    [_f1.layer setBorderColor:[[UIColor lightGrayColor] CGColor]];
    [_f1.layer setBorderWidth:1.0f];
    [_f2.layer setBorderColor:[[UIColor lightGrayColor] CGColor]];
    [_f2.layer setBorderWidth:1.0f];
    [_f3.layer setBorderColor:[[UIColor lightGrayColor] CGColor]];
    [_f3.layer setBorderWidth:1.0f];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(keyBoardjide:)];
    tap.cancelsTouchesInView = NO;
    [self.view addGestureRecognizer:tap];

    // Do any additional setup after loading the view.
}

- (void)keyBoardjide:(UITapGestureRecognizer *)tap
{
    [_f1 resignFirstResponder];
    [_f2 resignFirstResponder];
    [_f3 resignFirstResponder];
        
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
